package com.huiquan.analysis.domain;

import java.io.Serializable;

/**
 * Description:
 *
 * @author ChaoKai Wen email:chaokai.wen@witspring.com
 * @Date 15/4/8
 * @since Ver 1.0
 */
public class Vocabulary implements Serializable {
    private static final long serialVersionUID = -5064394925383900054L;

    private Long vid;
    private String vocabulary;
    private String character;
    private String property;
    private Long sid;
    private String bsjl = "";
    private Boolean isOdd;
    private String modifyTime;
    private String initial;
    private String position1;
    private String position2;

    public String getInitial() {
		return initial;
	}

	public void setInitial(String initial) {
		this.initial = initial;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Long getVid() {
        return vid;
    }

    public void setVid(Long vid) {
        this.vid = vid;
    }

    public String getVocabulary() {
        return vocabulary;
    }

    public void setVocabulary(String vocabulary) {
        this.vocabulary = vocabulary;
    }

    public String getCharacter() {
        return character;
    }

    public void setCharacter(String character) {
        this.character = character;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    public Boolean getIsOdd() {
        return isOdd;
    }

    public void setIsOdd(Boolean isOdd) {
        this.isOdd = isOdd;
    }

    public String getBsjl() {
        return bsjl;
    }

    public void setBsjl(String bsjl) {
        this.bsjl = bsjl;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getPosition1() {
		return position1;
	}

	public void setPosition1(String position1) {
		this.position1 = position1;
	}

	public String getPosition2() {
		return position2;
	}

	public void setPosition2(String position2) {
		this.position2 = position2;
	}

	@Override
    public boolean equals(Object obj) {
        if (!(obj instanceof Vocabulary))
            return Boolean.FALSE;

        Vocabulary tmp = (Vocabulary) obj;
        if (tmp.getCharacter().equals(getCharacter()) && tmp.getProperty().equals(getProperty())
                && tmp.getSid().equals(getSid()) && tmp.getVocabulary().equals(getVocabulary()))
            return Boolean.TRUE;

        return Boolean.FALSE;
    }
}
